//
//  UserAccountManager.h
//  QiFuLianMeng
//
//  Created by yuntai on 2017/5/5.
//  Copyright © 2017年 yuntai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserModel.h"
//#import <OSSClient.h>
#import "AreaModel.h"
#import "HotelTypeModel.h"

//typedef void (^OSSClientCompleted) (OSSClient * client,BOOL seccess);


#define kLoginStageKey @"appMingChuUserStage"

@interface UserAccountManager : NSObject
/**
 *  用户信息管理类单例初始化方法
 *
 *  @return UserAccountManager Instancetype
 */
+ (instancetype)shareUserAccountManager;
/**
 *  给管理类中的UserModel赋值(直接使用模型)
 *
 *  @param user is void
 */
- (void)loginWithModel:(UserModel *)user;
/**
 *  给管理类中的UserModel赋值(直接使用字典)
 *
 *  @param  userDic is void
 */
- (void)loginWithUserDic:(NSDictionary *)userDic;
/**
 *  保存用户信息(持久化)
 */
- (void)saveAccountDefaults;
/**
 *  登出
 */

- (void)logout;

- (void)saveAccountWith:(NSDictionary *)dic;

//-(void)getAliClientCompletion:(OSSClientCompleted)completion;



@property (nonatomic , strong , readonly) UserModel * userModel;///< 用户信息模型

@property (nonatomic , assign ) BOOL loginStatus;///< 登录状态

@property (nonatomic, strong) AreaModel *areaModel;

@property (nonatomic, strong) NSArray *hotelTypeModelArray;

@property (nonatomic, copy) NSString *currentLocation;

@end
